import request from '@/utils/request'

// 登录
export const login = (data) => {
  return request.post('/admin/user/login', data)
}

// 获取用户信息
export const getUserInfo = () => {
  return request.get('/admin/user/info')
}

// 更新用户信息
export const updateUserInfo = (data) => {
  return request.put('/admin/user/update', data)
}
